package pojo;

import java.io.Serializable;
import java.util.Date;

public class Book implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
	private String bname;
	private Date publishDate;
	private String author;
	private double price;
	private boolean unused;
	private String publisher;
	
	
	
	public Book() {}
	public Book(Integer id, String bname, Date publishDate, String author,
			double price, boolean unused, String publisher) {
		this.id = id;
		this.bname = bname;
		this.publishDate = publishDate;
		this.author = author;
		this.price = price;
		this.unused = unused;
		this.publisher = publisher;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getBname() {
		return bname;
	}
	public void setBname(String bname) {
		this.bname = bname;
	}
	public Date getPublishDate() {
		return publishDate;
	}
	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}
	public String getAuthor() {
		return author;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public boolean isUnused() {
		return unused;
	}
	public void setUnused(boolean unused) {
		this.unused = unused;
	}
	public String getPublisher() {
		return publisher;
	}
	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}
	@Override
	public String toString() {
		return "Book [id=" + id + ", bname=" + bname + ", publishDate="
				+ publishDate + ", author=" + author + ", price=" + price
				+ ", unused=" + unused + ", publisher=" + publisher + "]";
	}
	
	
}
